<script>
$(document).ready(function(){
	{params}
	
	var c = {
		init:function(){
			if(js.getoption('sendkuijie')=='1')get('radioctrent').checked=true;
			if(js.getoption('tantodo')!='no')get('tantodochekcbox').checked=true;
			if(js.getoption('shengtodo')!='no')get('shengtodochekcbox').checked=true;
			
			if(!nwjs)return;
			$('#nwjsinfo').show();
			var d = nw.process.versions;
			$('#nwinfo{rand}').html('nwjs-'+d.nw+'');
			//$('#nodejs{rand}').html(d.node);
			//$('#chrome{rand}').html(d.chromium);
			//js.getarr(nw.App.manifest);
		},
		closes:function(){
			reim.closetabsnow();
		},
		kuaijjx:function(v){
			js.setoption('sendkuijie', v);
		},
		tanclick:function(o){
			var v = '';
			if(!o.checked)v='no';
			js.setoption('tantodo', v);
		},
		shengclick:function(o){
			var v = '';
			if(!o.checked)v='no';
			js.setoption('shengtodo', v);
		},
		kaijiqd:function(o1){
			js.nwjs.openfile('加入开机启动.vbs');
		},
		kaijiqa:function(o1){
			js.nwjs.openfile('删除开机启动.vbs');
		},
		gonwjs:function(){
			window.open('https://nwjs.io');
		},
		create:function(){
			js.nwjs.openfile('创建桌面快捷方式.vbs');
		}
	}
	 
	 ckci{rand} = c;
	 
	
	js.initbtn(c);
});
</script>
<div align="center">
	
	
	<div style="max-width:300px;margin-top:50px;" align="left">
		<div style="padding:15px 5px 2px 10px;" class="hui fontsize12">基本设置</div>
		<div class="rock-panel rock-border rock-radius rock-list-group">
			<div class="rock-list-item rock-hover">
				<label><input type="checkbox" id="tantodochekcbox" value="1" onclick="ckci{rand}.tanclick(this)"> 新消息弹出提醒</label>
			</div>
			
			<div class="rock-list-item rock-hover">
				<label><input type="checkbox" id="shengtodochekcbox" value="1" onclick="ckci{rand}.shengclick(this)"> 新消息声音提醒</label>
			</div>
			
			<div class="rock-list-item">
				发送快捷键：
				<label onclick="ckci{rand}.kuaijjx('')"><input type="radio" name="skeyv" value="0" checked>Enter</label>&nbsp;&nbsp;
				<label onclick="ckci{rand}.kuaijjx(1)"><input type="radio" id="radioctrent" name="skeyv" value="1">Ctrl+Enter</label>
			</div>
			
		</div>
	
	</div>
	
	<div style="max-width:300px;display:none" id="nwjsinfo" align="left">
		<div style="padding:15px 5px 2px 10px;" class="hui fontsize12">客户端设置</div>
		<div class="rock-panel rock-border rock-radius rock-list-group">
			<div class="rock-list-item rock-hover" clickevt="kaijiqd">
				开机启动
				<font class="hui"><i class="icon-angle-right"></i></font>
			</div>
			<div class="rock-list-item rock-hover" clickevt="kaijiqa">
				删除开机启动
				<font class="hui"><i class="icon-angle-right"></i></font>
			</div>
			<div class="rock-list-item rock-hover" clickevt="create">
				创建桌面快捷方式
				<font class="hui"><i class="icon-angle-right"></i></font>
			</div>
			<div class="rock-list-item rock-hover" clickevt="gonwjs">
				NWJS客户端框架
				<font class="hui" id="nwinfo{rand}">nwjs-v0.55.0</font>
			</div>
			<!--
			<div class="rock-list-item">
				Nodejs版本
				<font class="hui" id="nodejs{rand}">0.1</font>
			</div>
			<div class="rock-list-item">
				Chromium版本
				<font class="hui" id="chrome{rand}">0.1</font>
			</div>
			-->
			
		</div>
	</div>
	
	


	<div style="margin-top:30px;margin-bottom:30px"><input clickevt="closes" style="width:150px" type="button" value="关闭" class="webbtn bg-outline-danger rock-border rock-hover"></div>	
	
</div>